class OrderDetailModel{
   String id;
  String proName;
  String price;
  String distance;
  String styleNo;
  String proStyle;
  String num;
  String robName;
  String endTime;
  String uname;
  String uhead;
  String comName;
  String craft;
  List imgs;
   int ispop;
  OrderDetailModel(
      {this.id,
      this.proName,
      this.price,
      this.distance,
      this.styleNo,
      this.proStyle,
      this.num,
      this.robName,
      this.endTime,
      this.uname,
      this.uhead,
      this.comName,
      this.craft,
      this.imgs,
      this.ispop,
      });

  OrderDetailModel.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    proName = json['proName'];
    price = json['price'];
    distance = json['distance'];
    styleNo = json['styleNo'];
    proStyle = json['proStyle'];
    num = json['num'];
    robName = json['robName'];
    endTime = json['endTime'];
    uname = json['uname'];
    uhead = json['uhead'];
    comName = json['comName'];
    craft = json['craft'];
     ispop = json['ispop'];
    if (json['imgs'] != null) {
     imgs=json['imgs'];
    }
    // if (json['comments'] != null) {
    //   comments = new List<Null>();
    //   json['comments'].forEach((v) {
    //     comments.add(new Null.fromJson(v));
    //   });
    // }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['proName'] = this.proName;
    data['price'] = this.price;
    data['distance'] = this.distance;
    data['styleNo'] = this.styleNo;
    data['proStyle'] = this.proStyle;
    data['num'] = this.num;
    data['robName'] = this.robName;
    data['endTime'] = this.endTime;
    data['username'] = this.uname;
    data['uhead'] = this.uhead;
    data['comName'] = this.comName;
    data['craft'] = this.craft;
    // if (this.imgs != null) {
    //   data['imgs'] = this.imgs.map((v) => v.toJson()).toList();
    // }
    // if (this.comments != null) {
    //   data['comments'] = this.comments.map((v) => v.toJson()).toList();
    // }
    return data;
  }
}